﻿/// ****************************************************************************
/// Author:	        Robin Zhu
/// Create Date:	2013-11-4
/// Purpose: 		用户角色表
/// ****************************************************************************
/// Modify By		Date			Remark
/// ****************************************************************************
///
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RB.Web.Security
{
    /// <summary>
    /// 用户角色表
    /// </summary>
    [RB.DataAccess.Attributes.QueryName("UserRole")]
    [RB.DataAccess.Attributes.TableName("UserRole")]
    public class UserRole : RB.Domain.Models.IIdKeyedConfig<Guid>
    {
        public System.Guid Id { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(20)]
        public string AppCode { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(6)]
        public string Code { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(100)]
        public string Name1 { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(100)]
        public string Name2 { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(100)]
        public string Name3 { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(50)]
        public string CreateBy { get; set; }

        public DateTime? CreateTime { get; set; }

        [System.ComponentModel.DataAnnotations.StringLengthAttribute(50)]
        public string ModifyBy { get; set; }

        public DateTime? ModifyTime { get; set; }

        public bool IsDisabled { get; set; }

        public short? Sequence { get; set; }

        public bool IsBuiltin { get; set; }

    }


}
